package com.kpx.app.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.widget.LinearLayout;

import com.kpx.app.utils.UIUtils;

/**
 * Created by congdy on 17/2/27.
 */

public class ViewGrowth extends LinearLayout {

    private final MyWebView webView;

    public ViewGrowth(Context context) {
        super(context);
        webView = new MyWebView(context);
        UIUtils.initWebView(context, webView);
        addView(webView);
    }

    public void setData(String linkUrl) {
        webView.loadUrl(linkUrl);
    }
}
